<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
| 商城设置
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
| @author renjianhong
| @date 2021-7-28 16:04
*/

//商城设置
Route::any('mall_setting/setting', 'MallSettingController@setting');//基础设置
Route::any('mall_setting/sms_setting', 'MallSettingController@sms_setting');//短信通知
Route::any('mall_setting/mail_setting', 'MallSettingController@mail_setting');//邮件通知
Route::any('mall_setting/territorial_limitation', 'MallSettingController@territorial_limitation');//区域限制购买
Route::get('mall_setting/getArea', 'MallSettingController@getArea');//获取区域
Route::any('mall_setting/offer_price', 'MallSettingController@offer_price');//起送规则

//运费规则
Route::get('postage_rules/list', 'PostageRulesController@list');//运费规则列表
Route::get('postage_rules/ajaxList', 'PostageRulesController@ajaxList');//AJAX获取数据
Route::any('postage_rules/edit', 'PostageRulesController@edit');//新增编辑
Route::post('postage_rules/delete', 'PostageRulesController@delete');//删除
Route::post('postage_rules/batchDelete', 'PostageRulesController@batchDelete');//批量删除
Route::post('postage_rules/isDefault', 'PostageRulesController@isDefault');//默认运费规则
Route::get('postage_rules/getArea', 'PostageRulesController@getArea');//获取区域

//包邮规则
Route::get('free_delivery_rules/list', 'FreeDeliveryRulesController@list');//包邮规则列表
Route::get('free_delivery_rules/ajaxList', 'FreeDeliveryRulesController@ajaxList');//AJAX获取数据
Route::any('free_delivery_rules/edit', 'FreeDeliveryRulesController@edit');//新增编辑
Route::post('free_delivery_rules/delete', 'FreeDeliveryRulesController@delete');//删除
Route::post('free_delivery_rules/batchDelete', 'FreeDeliveryRulesController@batchDelete');//批量删除
Route::get('free_delivery_rules/getArea', 'FreeDeliveryRulesController@getArea');//获取区域

//退货地址列表
Route::get('refund_address/list', 'RefundAddressController@list');//退货地址列表
Route::get('refund_address/ajaxList', 'RefundAddressController@ajaxList');//AJAX获取数据
Route::any('refund_address/edit', 'RefundAddressController@edit');//新增编辑
Route::post('refund_address/delete', 'RefundAddressController@delete');//删除
Route::post('refund_address/batchDelete', 'RefundAddressController@batchDelete');//批量删除